package com.ruoyi.bizsys.service;

import java.util.List;

import com.ruoyi.bizsys.domain.ExtTryQueue;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.bizsys.domain.RealNameAuth;
import com.ruoyi.bizsys.dto.PayTrans;

/**
 * 接口重试Service接口
 *
 * @author african-loan
 * @date 2022-03-04
 */
public interface IExtTryQueueService extends IService<ExtTryQueue>{
    /**
     * 查询接口重试
     *
     * @param id 接口重试ID
     * @return 接口重试
     */
    public ExtTryQueue selectExtTryQueueById(Long id);

    /**
     * 查询接口重试列表
     *
     * @param extTryQueue 接口重试
     * @return 接口重试集合
     */
    public List<ExtTryQueue> selectExtTryQueueList(ExtTryQueue extTryQueue);

    /**
     * 新增接口重试
     *
     * @param extTryQueue 接口重试
     * @return 结果
     */
    public int insertExtTryQueue(ExtTryQueue extTryQueue);

    /**
     * 修改接口重试
     *
     * @param extTryQueue 接口重试
     * @return 结果
     */
    public int updateExtTryQueue(ExtTryQueue extTryQueue);

    /**
     * 批量删除接口重试
     *
     * @param ids 需要删除的接口重试ID
     * @return 结果
     */
    public int deleteExtTryQueueByIds(Long[] ids);

    void appendTransferQueue(PayTrans payTrans,String apiName);

    /**
     * 加入定时任务
     * serialNo = tryType + "_" + CustNo
     * @param custNo
     * @param tryType
     */
    void appendQueue(String custNo, String tryType);

    /**
     * 存在才加一
     * @param payTransSerialNo
     */
    void isExistPlusOne(String payTransSerialNo,String apiName);

    void transferSuccess(String payTransSerialNo, String userId);
}
